package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ModelLayer.*;
import java.util.ArrayList;

/**
 * The test class UnitTest2.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class PersonUnitTest
{
    /**
     * Default constructor for test class UnitTest2
     */
    public PersonUnitTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void Test2()
    {
        ControlLayer.PersonCtrl personCt1 = new ControlLayer.PersonCtrl();
        personCt1.addPerson(1234, "per", "vej2", "per@mail.dk", 9000, "aalborg", 12345678);
        personCt1.updatePerson(1234, "per", "vej3", "per@mail.dk", 9000, "aalborg", 12345678);
        personCt1.deletePerson("per");
        ArrayList<Person> test = personCt1.findPerson("per", "per@mail.dk", 9000);
    }
}

